package superkigav.shared.rightsmanagement;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class UserTicket {
	private String userName;
	private UserGroup userGroup;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public UserGroup getUserGroup() {
		return userGroup;
	}

	public void setUserGroup(UserGroup userGroup) {
		this.userGroup = userGroup;
	}

	public UserTicket() {
		userName = "";
		userGroup = null;
	}
	
	public UserTicket(String p_userName, UserGroup p_userGroup) {
		userName = p_userName;
		userGroup = p_userGroup;
	}
	
	public String toString() {
		return "[user: " + userName + ", group: " + userGroup + " ]";
	}
}
